<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="sf" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="oas" uri="oastaglib" %>
<html>
<head>
    <title>Online Attendance System</title>

    <link rel="stylesheet" type="text/css" href="<c:url value="/resources/bootstrap/dist/css/bootstrap.min.css" /> ">
    <script type="text/javascript" src="<c:url value="/resources/js/jquery/dist/jquery.min.js"/>"></script>
    <script type="text/javascript" src="<c:url value="/resources/bootstrap/dist/js/bootstrap.min.js"/>"></script>
</head>
<body>
<oas:nav/>
<oas:content>
    <h1>
        修改个人信息
    </h1>
    <br/><a href="<c:url value="/user/center" />">返回</a><br/><br/>
    <sf:form method="POST" modelAttribute="user" cssStyle="width: 300px">
        姓名：<sf:input path="fullName" cssClass="form-control" type="text"/><br/>
        年龄：<sf:input path="age" cssClass="form-control" type="number"/><br/>
        邮箱：<sf:input path="email" cssClass="form-control" type="email"/><br/>
        电话：<sf:input path="phone" cssClass="form-control" type="tel"/><br/>
        性别：<sf:select path="gender" itemValue="${user.gender}" cssClass="form-control">
        <sf:options items="${genderList}"/>
    </sf:select><br/><br/>
        <input type="submit" value="提交更改" class="btn btn-primary"><br/>
    </sf:form>

</oas:content>
<oas:footer/>
</body>
</html>
